<%-- 
    Document   : cnt_body_wconten
    Created on : 04-mar-2013, 17:47:02
    Author     : romulogalindo
--%>

<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@page contentType="text/html" pageEncoding="ISO-8859-1"%>

<div style="position: fixed; top: 103px; width: 100%;">
    <div class="modo_print4">
        <div class="menu_opciones">
            <table width="100%" border="0" style="height: 32px">
                <tr>
                    <td align="left" width="20%">
                        <table  border="0" class="modo_print5">
                            <tr>
                                <c:if test="${sessionScope[param.id_frawor].cnt.il_icoatr}">
                                    <td valign="top" id="td_back">
                                        <a href="#" onclick="history.back();
                                                return false;" class="enlaceLista">
                                            <img border=0 src="../img/xback4.gif" align="center" style="cursor: pointer; " alt="${b.no_botone}" title="${b.no_botone}"/>
                                        </a>
                                    </td>
                                </c:if>
                                <c:if test="${sessionScope[param.id_frawor].cnt.il_icoxls}">
                                    <td valign="top">
                                        <a href="../workflow2/contenedorxls_bk.jsp?id_frawor=${param.id_frawor}" class="enlaceLista" onclick="exportarxls();
                                                return false;">
                                            <img border=0 src="../img/xexcel4.gif" align="center" style="cursor: pointer; " alt="${b.no_botone}" title="${b.no_botone}" />
                                        </a>
                                    </td>
                                </c:if>
                                <c:if test="${sessionScope[param.id_frawor].cnt.il_icoref}">
                                    <td valign="top">
                                        <a href="" onclick="window.location.reload();" class="enlaceLista">
                                            <img border=0 src="../img/xrefresh4.jpg" align="center" style="cursor: pointer; " alt="${b.no_botone}" title="${b.no_botone}"/>
                                        </a>
                                    </td>
                                </c:if>
                                <c:if test="${sessionScope[param.id_frawor].cnt.il_icoclo}">
                                    <td valign="top">
                                        <a href="" target="_blank" class="enlaceLista">
                                            <img border=0 src="../img/xexport4.gif" align="center" style="cursor: pointer; " alt="${b.no_botone}" title="${b.no_botone}"/>
                                        </a>
                                    </td>
                                </c:if>
                                <c:if test="${sessionScope[param.id_frawor].cnt.il_icopdf}">
                                    <td valign="top">
                                        <a href="../workflow2/convert_pdf.jsp?id_frawor=${param.id_frawor}" class="enlaceLista" >
                                            <img border=0 src="../img/pdf/acrobat_icon.png" align="center" style="cursor: pointer; " alt="${b.no_botone}" title="${b.no_botone}" />
                                        </a>
                                    </td>
                                </c:if>
                            </tr>
                        </table>
                    </td>
                    <td  align="center" >
                        <label class="texto13b" >${sessionScope[param.id_frawor].cnt.no_contit}</label>
                        <c:if test="${not empty sessionScope['path']}">
                            <br/>
                            <label class="tdPagina4"></label>
                        </c:if>
                    </td>
                    <td align="left" width="20%">
                        <table  border="0" width="100%" class="modo_print5">
                            <tr>
                                <td width="100%">
                                </td>
                                <c:if test="${applicationScope.sistema == 'acceso'}">
                                    <c:if test="${sessionScope[param.id_frawor].cnt.il_icohlp}">
                                        <td>
                                            <a href="../wf?co_conten=22" target="helpdesk">
                                                <img id="img_helpdesk" border=0 src="../img/helpdesk3.png" align="top" style="cursor: pointer;vertical-align: top; " alt="Helpdesk" title="Helpdesk" height="25px">
                                            </a>
                                        </td>
                                    </c:if>
                                </c:if>
                                <c:if test="${sessionScope[param.id_frawor].cnt.il_icoimp}">
                                    <td valign="top">
                                        <img align="middle" border="0" onclick="window.print();" title="Imprimir" alt="" style="cursor: pointer; " src="../img/xprint4.jpg">
                                    </td>
                                </c:if>
                            </tr>
                        </table>
                    </td>
                </tr>
            </table>
        </div>
    </div>
    <!-- CUERPO DEL BODY CON SUS OPCIONE Y TODO LO DEMAS>
    <!-- pags--> 
    <hr/>
    <style>
        td{
            border: 1px solid black;
            /*        border-collapse: collapse;*/
        }
        td:nth-child(1){
            width: 27%;
        }
        td:nth-child(2){
            width: 53%;
        }
    </style>


    <table align="center"  border="0" cellspacing="1" cellpadding="2" style="padding-left:7px">
        <c:forEach items="${sessionScope[param.id_frawor].contab_rows}" var="conrow">
            <tr>
                <c:forEach items="${conrow.tabs}" var="tab">
                    <td rowspan="${tab.nu_rowspa}" colspan="${tab.nu_colspa}" valign="${tab.ti_valing}" halign="${tab.ti_haling}">
                        <div style="vertical-align: top;">
                            <table align="center"  border="0" cellspacing="1" cellpadding="2">
                                <script>console.log(${tab.rows});</script>
                                <c:forEach items="${tab.rows}" var="tabrow">
                                    <tr>
                                        <c:forEach items="${tabrow.paginas}" var="page">
                                            <c:set var="page" value="${page}" scope="request"/>
                                            ${page.actionable()}
                                            <td rowspan="${page.pagdto.nu_rowspa}"  colspan="${page.pagdto.nu_colspa}" valign="top"  style="white-space: -webkit-nowrap; vertical-align: middle;" width="505">
                                                <div id="div_pagina_${page.pagdto.id.co_pagina}" style="display: block; background-color: white;">
                                                    <jsp:include page="pages/page_${page.getType()}.jsp"/>
                                                </div>
                                            </td>
                                        </c:forEach>
                                    </tr>
                                </c:forEach>
                            </table>
                        </div>
                    </td>
                </c:forEach>
            </tr>
        </c:forEach>

    </table>
</div>
